<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	pageContext.setAttribute("path",path);
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<script type="text/javascript" >
$(function(){
	$(".easyui-linkbutton").linkbutton({});
		
	var form = $("#user_edit_form");
	if( '${data.username}' ){	//修改enabled
		if( "${data.enabled}" == "true" ){
			form.find("input[name='isenable'][value='true']").attr("checked",true);
		}else{
			form.find("input[name='isenable'][value='false']").attr("checked",true);
		}
	}
});
</script>

<style>
.edit_table{}
.edit_table td{
	height:25px;
	border:0;
}
</style>
<div style="padding:5px 0 5px 20px;background-color:#ccc">
	<form action="" id="user_edit_form" name="user_edit_form" >
		<input name="username" type="hidden" value="${data.username}" />
		<input name="password" type="hidden" value="" />
		<input name="isnew" type="hidden" value="false" />
		<table class="edit_table" >
			<tr>
				<td>真实名字：</td>
				<td><input name="truename" value="${data.username}" /></td>
			</tr>
			<tr>
				<td>昵称：</td>
				<td><input name="nickname" value="${data.nick_name}" /></td>
			</tr>
			<tr>
				<td>激活状态：</td>
				<td>
					<label><input type="radio" name="isenable" value="true" style="height:12px;vertical-align:-3px" />已激活  </label>
					<label><input type="radio" name="isenable" value="false" style="height:12px;vertical-align:-3px"  />未激活 </label>
				</td>
			</tr>
			<!-- 			
			<tr>
				<td>E-mail：</td>
				<td><input name="email" value="${data.email}" /></td>
			</tr>
			<tr>
				<td>电话：</td>
				<td><input name="phone" value="${data.phone}" /></td>
			</tr> -->
		</table>
		<div>
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="User.editUser( this );">保存分配</a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="User.closeEditUser( this );">关闭</a>
		</div>
	</form>
</div>